﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace HippoMapper.SqlMapper
{
    public interface IConditionSqlParameter : IConditionParameter
    {
        string Expression { get; set; }

        void AddParameter(string parameterName, DbType type, object value);

        IEnumerable<SqlParameter> Parameters { get;}
    }

    public class SqlParameter
    {
        private string _parameterName;

        public string ParameterName
        {
            get { return _parameterName; }
            set { _parameterName = value; }
        }

        private DbType _type;

        public DbType Type
        {
            get { return _type; }
            set { _type = value; }
        }

        private object _value;

        public object Value
        {
            get { return _value; }
            set { _value = value; }
        }
    }
}
